package top.wilbert.collegelink.message.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import top.wilbert.collegelink.message.entity.ChatListEntity;

import java.util.List;

/**
 * @Description:
 * @Author:Jiiangyu
 * @CreatTime:2023-02-27-19:47
 */

public interface ChatListService extends IService<ChatListEntity> {
    /**
     * 进入聊天消息模块  根据fromName查询已存在(status = 1)的聊天列表
     *
     * @param fromName
     * @return java.util.List<top.wilbert.collegelink.message.entity.ChatListEntity>
     **/
    List<ChatListEntity> getChatListByFromUser(String fromName);

    /**
     * 更新chat_list表 from_window
     *
     * @param linkId
     * @return void
     **/
    void updateListByLinkId(Long linkId);
}
